package org.singleton.ex4.eg2;

public class Singleton1 {
	
	private static Singleton1 uniqueInstance = null;
	
	private Singleton1() {
	}
	
	public static synchronized Singleton1 getInstance(){
		if(uniqueInstance == null){
			uniqueInstance = new Singleton1();
		}
		return uniqueInstance;
	}
	
	private void singletonOpertion() {
	}
	
	private String singletonData;
	
	public String getsinglelonData(){
		return singletonData;
	}
}
